package cn.xiaosiyuan.util.dataStructure.linkedList;


/**
 * 线性表
 */
public interface ILinearList<E> {

    boolean initList(ILinearList<E> l);

    int length(ILinearList<E> l);

    int locateElem(ILinearList<E> l, E e);

    E getElem();

    boolean listInsert(ILinearList<E> l,int i, E e);

    boolean listDelete(ILinearList<E> l,int i, E e);

    void printList(ILinearList<E> l);

    boolean empty(ILinearList<E> l);

    boolean destroyList(ILinearList<E> l);

}
